#pragma once
#include <vector>
#include <fstream>
#include <CParameters.h>
#include <CGraph.h>
using namespace std;



class CLikelihood {
 public:

  vector<CParameters> likelihood;
  int binx, biny;
  double mean, std;
  
  CGraph Px, Py;


  void Setup(int x, int y) {
    binx = x;
    biny = y;
    likelihood.resize(x*y);
    Px.Initialize(x);
    Py.Initialize(y);

  }


  void Mean();
  
  void Std();
  void Conditional();
  void ToLikelihood();
  void SaveText(string filename);
  
};
